﻿using System.Linq;
using tomenglertde.SetupProject.Model;

namespace tomenglertde.SetupProject.ViewModel
{
    public class SetupHierarchyEntry : SetupItem
    {
        public SetupHierarchyEntry(NodeEntity node, SetupProjectViewModel project)
            : base(node, project)
        {
        }

        public string Owner
        {
            get
            {
                return Node.GetValue("OwnerKey");
            }
        }

        public override string Id
        {
            get
            {
                return Node.GetValue("MsmKey");
            }
            set
            {
                Node.SetValue("MsmKey", value);
            }
        }
    }
}
